package com.wentao.thisService.service;

import com.wentao.thisCommon.model.RequestBase;
import com.wentao.thisFacade.domain.PageBase;
import com.wentao.thisFacade.domain.reqeust.SearchSettingListRequest;
import com.wentao.thisFacade.domain.result.CompanyAddressInfoResult;
import com.wentao.thisFacade.domain.result.SettingMapResult;
import com.wentao.thisService.model.entities.PageEntity;

import java.util.List;
import java.util.Map;

/**
 * @Auther: ZhaiYanTao
 * @Date: 2020/3/27 09:28
 * @Description: 通用service
 */
public interface CommunalService {
    /**
     * 获取数据库配置的基本信息
     * @param entity 查询条件封装
     * @return 数据库配置
     * @throws Exception 异常信息
     */
    List<SettingMapResult> searchSettingList(RequestBase<SearchSettingListRequest> entity) throws Exception;

    /**
     * 根据companyCode查询酒店审核状态（用于前端页面跳转），用CompanyAddressInfoResult.remark属性来表示状态
     *
     * @param entity 查询条件封装
     * @return 返回remark属性表示状态，如果是审核驳回状态用CompanyAddressInfoResult.reason属性来表示驳回原因
     * @throws Exception 异常信息
     */
    CompanyAddressInfoResult hotelReviewStatus(String companyCode) throws Exception;

    Map<String,String > hotelReviewStatus() throws Exception;

}
